<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue"></script>
    <script>
        window.onload=function() {
            Vue.component('child', {
                props: ['message'],
                template: '<span>{{ message }}</span>'
            })
            Vue.component('simple-counter',{
                template:'<button v-on:click="counter+=1">{{counter}}</button>',
                data:function(){
                    return {counter:0};
                }
            })
            new Vue({
                el: '#example'
                ,data:{
                    parentMsg:''
                }
            })


        }
    </script>

</head>
<body>
<div id="example">
    <div>
        <input v-model="parentMsg">
        <br>
        <child v-bind:message="parentMsg"></child>
    </div>
    <div>
        <simple-counter></simple-counter>
        <simple-counter></simple-counter>
        <simple-counter></simple-counter>

    </div>
</body>
</html>
